﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="dmsPaging.ascx.cs" Inherits="Controls_dmsPaging" %>
<div style="clear: both;">
    <asp:Panel ID="Panel1" runat="server" Visible="False">
      <table cellpadding="0" border="0" class="mpg"> 
                        <tr>
                            <td id="Td1" align="right" runat="server" visible="false">
                                <asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" OnClick="lbtnFirst_Click">Trang đầu</asp:LinkButton>
                                </td>
                            <td align="right">
                                <asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" OnClick="lbtnPrevious_Click">«</asp:LinkButton>&nbsp;&nbsp;</td>
                            <td align="center" valign="middle">
                            <input type="hidden" id="currpage" value='<%= getCurrPage() %>' />
                                <asp:DataList ID="dlPaging" runat="server" RepeatDirection="Horizontal" OnItemCommand="dlPaging_ItemCommand"
                                    OnItemDataBound="dlPaging_ItemDataBound">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkbtnPaging" ToolTip='<%# Eval("PageText") %>' runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                                            CommandName="Paging" Text='<%# Eval("PageText") %>'></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:DataList>
                            </td>
                            <td align="left">
                               <asp:LinkButton ID="lbtnNext" runat="server" CausesValidation="false"
                                    OnClick="lbtnNext_Click">»</asp:LinkButton></td>
                            <td id="Td2" align="left" runat="server" visible="false">
                               
                                <asp:LinkButton ID="lbtnLast" runat="server" CausesValidation="false" OnClick="lbtnLast_Click">Trang cuối</asp:LinkButton></td>
                        </tr>
                        <tr>
                            <td id="Td3" colspan="5" align="center" style="height: 30px" valign="middle" runat="server" visible="false">
                                <asp:Label ID="lblPageInfo" runat="server"></asp:Label></td>
                        </tr>
                    </table>
    </asp:Panel>
</div>
